package com.peng._05mvcboot03.mapper;

import com.peng._05mvcboot03.pojo.entity.Article;
import com.peng._05mvcboot03.pojo.vo.ArticleVO;
import org.apache.ibatis.annotations.Insert;

/**
 * 文章Mapper
 * @Author peng
 * @Date 2024-04-26 17:43
 */
public interface ArticleMapper {
    @Insert("insert into mvc_article(title, content, user_id) " +
            "values(#{title}, #{content}, #{userId})")
    int insertArticle(Article article);

    ArticleVO getArticleById(Long id);
}
